
package com.xdf.wxbebarrel.service;

import com.xdf.wxbebarrel.model.User;
import java.util.List;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2022-10-22 13:59:39
 */
public interface UserService {
    int insert(User record);

    int insertSelective(User record);

    int multiInsert(List<User> list);

    int updateByPrimaryKey(User record);

    int updateByPrimaryKeySelective(User record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer iid);
    // 根据主键查询
    User selectByPrimaryKey(Integer iid);

    List<User> selectAll();

    int save(User record);
    int multiSave(List<User> list);

    User selectBySid(String sid);
    Boolean exists(String sid);
    //=================以上是自动生成的代码，自定义代码请写在下面==================

    int updateRealName(String openId,String realName,String mill);

    List<User> selectAuditors();
    Boolean effectiveUser(String openId);// 微信用户是否在表 user_mill 有关联关系

    User selectByOpenId(String openId);

    int deleteByOpenid(String openId);
    int registerNewUser(String code,Integer millIid,String realName) throws Exception;
    int registerNewUser(String openId,String nickName,String realName,String millName,String code,String role);
    List<User> selectAllAuditors();
    int setClientRelationship(Integer userIid,Integer millIid,String role);
    int setClientRelationshipMult(List<Integer> userIidList,List<Integer> millIidList,String role);
}